/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.hohai.river.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 地区表
 *
 * @author pig code generator
 * @date 2022-09-14 14:42:30
 */
@Data
@TableName("sys_region")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "地区表")
public class SysRegion extends BaseEntity {

	/**
	 * 地区主键编号
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "地区主键编号")
	private Long regionId;

	/**
	 * 地区名称
	 */
	@Schema(description = "地区名称")
	private String regionName;

	/**
	 * 地区缩写
	 */
	@Schema(description = "地区缩写")
	private String regionShortName;

	/**
	 * 行政地区编号
	 */
	@Schema(description = "行政地区编号")
	private String regionCode;

	/**
	 * 地区父id
	 */
	@Schema(description = "地区父id")
	private Long regionParentId;

	/**
	 * 地区级别 1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县
	 */
	@Schema(description = "地区级别 1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县")
	private Integer regionLevel;

}
